Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: enum description number values #2023

Merged
merged 1 commit into from
Dec 24, 2024
Merged

Conversation

baywet
Copy link
Member

@baywet baywet commented Dec 23, 2024

Signed-off-by: Vincent Biret [email protected]

Comment on lines +102 to +105
if (value.GetValueKind() == JsonValueKind.Number)
Value = value.GetValue<decimal>().ToString(CultureInfo.InvariantCulture);
else
Value = value.GetValue<string>();

Check notice

Code scanning / CodeQL

Missed ternary opportunity Note

Both branches of this 'if' statement write to the same variable - consider using '?' to express intent better.
@baywet baywet merged commit ff7b4a9 into dev Dec 24, 2024
12 checks passed
@baywet baywet deleted the fix/enum-description-int-values branch December 24, 2024 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants